package com.yuan.user;

import com.yuan.transportation.Vehicle;

import com.yuan.education.School;

public class Person {
	private String name;
	private String sex;
	private int age;
	private String address;
    private Vehicle vehicle;
    private School school;
    public void setName(String name){
        this.name = name;
    }
    public String getName(){
        return name;
    }
    public void setSex(String sex){
        this.sex = sex;
    }
    public String getSex(){
        return sex;
    }
    public void setAge(int age){
        this.age = age;
    }
    public int getAge(){
        return age;
    }
    public void setAddress(String address){
        this.address = address;
    }
    public String getAddress(){
        return address;
    }
    public void setVehicle(Vehicle vehicle){
        this.vehicle = vehicle;
    }
    public Vehicle getVehicle(){
        return vehicle;
    }
    public void setSchool(School school){
        this.school = school;
    }
    public School getSchool(){
        return school;
    } 
    public void goToSchool(){
        vehicle.toSchool("小明");
    }
    public void goToTest(){
        school.toTest();
    }
}